//
//  TextCell.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/9/13.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import UIKit

class TextCell: UITableViewCell {
    
    @IBOutlet weak var textField: UITextField!
    @IBOutlet weak var titleLabel: UILabel!
    var edited = true {
        didSet {
            if edited == false {
                textField.isEnabled = false
                textField.textAlignment = .right
            }
        }
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        titleLabel.textColor = .black
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
}


